// 第一题

function setTime(time, value) {
  return new Promise((res, rej) => {
    setTimeout(() => {
      res(value)
    }, time)
  })
}

let promise = setTime(10, 'hello')

promise.then((value) => {
  return setTime(10, value + ' lagou')
}).then((value) => {
  return setTime(10, value + ' I ❤ you')
}).then((value) => {
  console.log(value)
})
